package com.heihx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 地址簿
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "地址实体")
public class AddressBook implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键值")
    @TableId(type = IdType.AUTO)
    private Long id;

    //用户id
    @Schema(description = "用户id")
    private Long userId;

    //收货人
    @Schema(description = "收货人")
    private String consignee;

    //手机号
    @Schema(description = "手机号码")
    private String phone;

    //性别 0 女 1 男
    @Schema(description = "性别")
    private String sex;

    //省级区划编号
    @Schema(description = "省级区划编号")
    private String provinceCode;

    //省级名称
    @Schema(description = "省份")
    private String provinceName;

    //市级区划编号
    @Schema(description = "市级区划编号")
    private String cityCode;

    //市级名称
    @Schema(description = "市名")
    private String cityName;

    //区级区划编号
    @Schema(description = "区级区划编号")
    private String districtCode;

    //区级名称
    @Schema(description = "区名")
    private String districtName;

    //详细地址
    @Schema(description = "详细地址")
    private String detail;

    //标签
    @Schema(description = "标签")
    private String label;

    //是否默认 0否 1是
    @Schema(description = "是否默认")
    private Integer isDefault;
}
